#!/bin/bash
DAYS=30
find /var/log -type f -name "*.log" -mtime +$DAYS -delete
echo "$(date) - Old logs cleaned." >> /var/log/cleanup.log
